package com.yuandian.api.management.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yuandian.api.management.validate.InsertFlag;
import com.yuandian.api.management.validate.UpdateFlag;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * -实体
 * @author zfsn
 * @date 2023-5-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "", description = "")
@TableName("conf_channel_mapping")
public class ConfChannelMapping extends BasePage<ConfChannelMapping> {

	/**
	 * null
	 */
	@ApiModelProperty(value = "", notes = "null")
	@TableId(type = IdType.AUTO)
	@NotNull(message = "id 不能为空", groups = {UpdateFlag.class})
	private Integer id;

	/**
	 *
	 */
	@ApiModelProperty(value = "渠道编码", notes = "")
	@NotBlank(message = "渠道编码 不能为空", groups = {InsertFlag.class, UpdateFlag.class})
	private String channelCode;

	/**
	 *
	 */
	@ApiModelProperty(value = "渠道名称", notes = "")
	@NotBlank(message = "渠道名称 不能为空", groups = {InsertFlag.class, UpdateFlag.class})
	private String channelName;

	/**
	 *
	 */
	@ApiModelProperty(value = "系统id", notes = "")
	@NotNull(message = "系统id 不能为空", groups = {InsertFlag.class, UpdateFlag.class})
	private Integer systemId;

	/**
	 *
	 */
	@TableField(exist = false)
	@ApiModelProperty(value = "系统名称", notes = "")
	private String systemName;

}